#include <iostream>
#include <cstdlib>
#include <cstring>

using namespace std;

struct T1 {
    char str[1];
    int data;
};

struct T2 {
    int data;
    char cha;
};

int main() {
    char * str = "hello";
    struct T1 * t = (struct T1 *) malloc(sizeof(struct T1));
    //struct T1 * t = (struct T1 *) malloc(sizeof(struct T1) +strlen(str) +1);
    strcpy(t->str, str);
    cout << t->str << endl;
}
